package com.local.goods.pojo;

import java.io.Serializable;

/**
 * 商品搜索的参数
 */
public class GoodsESRequestParam implements Serializable {
    private String keywords;//搜索的关键词
    private Integer page;//页码
    private Integer size;//每页显示数量
    private String sortBy;//排序字段
    private String order;//排序方法 asc desc
    private Integer minPrice;//价格范围-低
    private Integer maxPrice;//价格范围-高

    public GoodsESRequestParam(){}

    public GoodsESRequestParam(String keywords, Integer page, Integer size, String sortBy, String order, Integer minPrice, Integer maxPrice) {
        this.keywords = keywords;
        this.page = page;
        this.size = size;
        this.sortBy = sortBy;
        this.order = order;
        this.minPrice = minPrice;
        this.maxPrice = maxPrice;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    @Override
    public String toString() {
        return "GoodsESSearchRequestParam{" +
                "keywords='" + keywords + '\'' +
                ", page=" + page +
                ", size=" + size +
                ", sortBy='" + sortBy + '\'' +
                ", order='" + order + '\'' +
                ", minPrice=" + minPrice +
                ", maxPrice=" + maxPrice +
                '}';
    }
}
